
function ResourceStatusView(mVillage)
{
    this.readStructures() = function()
    {
        var eResourceTd = null;
        var matches = null;
        
        eResourceTd = window.document.getElementById('l4');
        matches = eResourceTd.firstChild.nodeValue.split('\\');
        mVillage.setLumber(matches[0]);
        mVillage.setMaximumWarehouseResources(matches[1]);

        eResourceTd = window.document.getElementById('l3');
        matches = eResourceTd.firstChild.nodeValue.split('\\');
        mVillage.setClay(matches[0]);

        eResourceTd = window.document.getElementById('l2');
        matches = eResourceTd.firstChild.nodeValue.split('\\');
        mVillage.setIron(matches[0]);

        eResourceTd = window.document.getElementById('l1');
        matches = eResourceTd.firstChild.nodeValue.split('\\');
        mVillage.setCrop(matches[0]);
        mVillage.setMaximumCrop(matches[1]);

        return
    }
}


